
//==============================================================================
// swordsman_anim.txt
// Fixed the hero glow, soulborn, soul aurora born and heaven light ~WarriorMario
// This unit has the Destroyer helmet, the heater shield, and the trident.
//==============================================================================

import Atlantis_Large_Shield_anim.txt
import Atlantis_Trident_defines_anim.txt

//==============================================================================
define heroglow
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Glow Small
		}
	}
}

//==============================================================================
define soul
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul
		}
	}
}

//==============================================================================
define soulborn
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero SoulBorn
		}
	}
}

//==============================================================================
define soulaurora
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul Aurora
		}
	}
}

//==============================================================================
define soulauroraborn
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul AuroraBorn
		}
	}
}

//==============================================================================
define heavenlight
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul Heaven Light
		}
	}
}

//==============================================================================
define soulbirth
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul Birth
		}
	}
}

//==============================================================================
define Head
{
	set hotspot
	{
		version
		{
			Visual Infantry X Trident Soldier Head Hero
			ReplaceTexture Infantry X Trident Soldier Head Iron/Infantry X Trident Soldier Head Hero
		}
	}
}

//==============================================================================
anim Idle
{
	SetSelector
	{
		ContainLogic
		SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Infantry X Murmillo_IdleA
					ReplaceTexture Infantry X Swordsman Iron/Infantry X Trident Soldier Hero
					Connect HOTSPOT heroglow hotspot
					connect RightHand Trident hotspot
					connect LeftForearm LargeAtlantisHeroShield hotspot
					Connect TopOfHead Head hotspot
				}
			}
		}
		SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Infantry X Maceman_CarryIdle
					ReplaceTexture Infantry X Maceman Iron/Infantry X Swordsman Hero
					Connect HOTSPOT heroglow hotspot
					connect BackChest Trident hotspot
					connect LeftForearm LargeAtlantisHeroShield hotspot
					Connect TopOfHead Head hotspot
				}
			}
		}
	}
}

//==============================================================================
anim Walk
{
	SetSelector
	{
		ContainLogic
		SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Infantry X Murmillo_WalkA
					//-- auto generated by the bang animation tool
					//-- do not hand edit these values
					tag FootstepLeft 0.25 true
					tag FootstepRight 0.80 true
					//-- end auto generated section
					ReplaceTexture Infantry X Swordsman Iron/Infantry X Trident Soldier Hero
					Connect HOTSPOT heroglow hotspot
					connect RightHand Trident hotspot
					connect LeftForearm LargeAtlantisHeroShield hotspot
					Connect TopOfHead Head hotspot
					Length 0.85
				}
			}
		}
		SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Infantry X Maceman_carry
					ReplaceTexture Infantry X Maceman Iron/Infantry X Swordsman Hero
					//-- auto generated by the bang animation tool
					//-- do not hand edit these values
					tag FootstepLeft 0.60 true
					tag FootstepRight 0.20 true
					//-- end auto generated section
					Connect HOTSPOT heroglow hotspot
					connect BackChest Trident hotspot
					connect LeftForearm LargeAtlantisHeroShield hotspot
					Connect TopOfHead Head hotspot
					Length 0.85
				}
			}
		}
	}
}

//==============================================================================
anim Attack
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual Infantry G Hoplite_AttackB
				//-- auto generated by the bang animation tool
				//-- do not hand edit these values
				tag Attack 0.51 true
				tag SpecificSoundSet 0.40 false ShieldBash checkVisible
				//-- end auto generated section
				ReplaceTexture Infantry G Hoplite Standard/Infantry X Swordsman Hero
				Connect HOTSPOT heroglow hotspot
				connect RightHand Trident hotspot
				connect LeftForearm LargeAtlantisHeroShield hotspot
				Connect TopOfHead Head hotspot
			}
		}
	}
}

//==============================================================================
anim RangedAttack
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual Infantry G Hoplite_AttackA
				//-- auto generated by the bang animation tool
				//-- do not hand edit these values
				tag Attack 0.49 true
				tag GenericSound 0.40 true
				tag SpecificSoundSet 0.35 false SpearSwing checkVisible
				//-- end auto generated section
				ReplaceTexture Infantry G Hoplite Standard/Infantry X Swordsman Hero
				Connect HOTSPOT heroglow hotspot
				connect RightHand Trident hotspot
				connect LeftForearm LargeAtlantisHeroShield hotspot
				Connect TopOfHead Head hotspot
			}
			version
			{
				Visual Infantry G Militia_Headless-AttackA
				//-- auto generated by the bang animation tool
				//-- do not hand edit these values
				tag Attack 0.49 true
				tag GenericSound 0.40 true
				tag SpecificSoundSet 0.35 false SpearSwing checkVisible
				//-- end auto generated section
				ReplaceTexture Infantry G Militia/Infantry X Swordsman Hero
				Connect HOTSPOT heroglow hotspot
				connect RightHand Trident hotspot
				connect BackChest LargeAtlantisHeroShield hotspot
				Connect TopOfHead Head hotspot
			}
			version
			// this is a copy of attack 1 in order to hopefully make the 2-handed stab more rare
			{
				Visual Infantry G Hoplite_AttackA
				//-- auto generated by the bang animation tool
				//-- do not hand edit these values
				tag Attack 0.49 true
				tag GenericSound 0.40 true
				tag SpecificSoundSet 0.35 false SpearSwing checkVisible
				//-- end auto generated section
				ReplaceTexture Infantry G Hoplite Standard/Infantry X Swordsman Hero
				Connect HOTSPOT heroglow hotspot
				connect RightHand Trident hotspot
				connect LeftForearm LargeAtlantisHeroShield hotspot
				Connect TopOfHead Head hotspot
			}
		}
	}
}

//==============================================================================
anim Death
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual Infantry X Murmillo_DeathA
				ReplaceTexture Infantry X Swordsman Iron/Infantry X Trident Soldier Hero
				Connect HOTSPOT heroglow hotspot
				connect RightHand Trident hotspot
				connect LeftForearm LargeAtlantisHeroShield hotspot
				Connect TopOfHead Head hotspot
			}
		}
	}
}

//==============================================================================
anim Bored
{
	SetSelector
	{
		ContainLogic
		SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Infantry X Murmillo_boredA
					ReplaceTexture Infantry X Swordsman Iron/Infantry X Trident Soldier Hero
					Connect HOTSPOT heroglow hotspot
					connect RightHand Trident hotspot
					connect LeftForearm LargeAtlantisHeroShield hotspot
					Connect TopOfHead Head hotspot
				}
			}
		}
		SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Infantry X Maceman_CarryBored
					ReplaceTexture Infantry X Maceman Iron/Infantry X Swordsman Hero
					Connect HOTSPOT heroglow hotspot
					connect BackChest Trident hotspot
					connect LeftForearm LargeAtlantisHeroShield hotspot
					Connect TopOfHead Head hotspot
				}
			}
		}
	}
}

//==============================================================================
anim Flail
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual Infantry X Murmillo_FlailA
				ReplaceTexture Infantry X Swordsman Iron/Infantry X Trident Soldier Hero
				Connect HOTSPOT heroglow hotspot
				connect RightHand Trident hotspot
				connect LeftForearm LargeAtlantisHeroShield hotspot
				Connect TopOfHead Head hotspot
			}
		}
	}
}

//==============================================================================
anim Birth
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual Infantry X Maceman_birth
				ReplaceTexture Infantry X Maceman Iron/Infantry X Swordsman Hero
				connect RightHand Trident hotspot
				connect LeftForearm LargeAtlantisHeroShield hotspot
				Connect ATTACHPOINT soulborn hotspot
				Connect HOTSPOT heroglow hotspot
				Connect ATTACHPOINT heavenlight hotspot
				connect ATTACHPOINT soulauroraborn hotspot
				Connect TopOfHead Head hotspot
			}
		}
	}
}

//==============================================================================
anim Cinematic
{
	SetSelector
	{
		set hotspot
		{
			name infantryxswordman_runA
			version
			{
				Visual infantryxswordman_runA
			}
		}
	}
}

//==============================================================================
anim Charging
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual villager C male_shorefishinga
					ReplaceTexture villager c male head/Archer G Peltast Head Invisible
					ReplaceTexture villager c male standard/Infantry X Swordsman Hero
				//-- auto generated by the bang animation tool
				//-- do not hand edit these values
					tag Attack 0.27 true
					tag GenericSound 0.27 true
					tag SpecificSoundSet 0.10 false HugeSwing checkVisible 
				//-- end auto generated section
				connect BackChest Trident hotspot
				connect LeftForearm LargeAtlantisHeroShield hotspot
				Connect ATTACHPOINT soulborn hotspot
				Connect HOTSPOT heroglow hotspot
				Connect ATTACHPOINT heavenlight hotspot
				connect ATTACHPOINT soulauroraborn hotspot
				Connect TopOfHead Head hotspot
				Length 2.00
			}
		}
	}
}